<template>
  <div id="menu">
    我是菜单
    <div>
      {{ title }}
      <br>
      <span>父组件传入子组件对象defineProps</span>
      <div v-for="item in nums" :key="item">
        {{ item }}
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
type props = {
  title: string
  nums: number[]
}
defineProps<props>()

</script>

<style lang="less" scoped>
#menu {
  width: 15%;
  border-right: 1px solid #ccc;
}
</style>